// const mod = require("./lib")

// console.log(mod.counter());  // 3
// mod.incCounter();

// console.log(mod.counter());//



//==== import 模式
import { counter, incCounter } from './lib.js';


console.log(counter); // 3
incCounter();
console.log(counter); // 4